<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="s" uri="/struts-tags"%>    
<script type="text/javascript">
	$(function(){
		$('ul.jd_menu').jdMenu();
	});
</script>
<ul id="menu" class="jd_menu jd_menu_slate">
	<li><a href="../general/Home.action"><s:text name="menu.home"></s:text></a></li>
<!-- Logged on menu -->
<s:if test="<%=  String.valueOf(session.getAttribute(\"session_user\") != null) %>">
	<li class="accessible"><a href="#"><s:text name="menu.gallery"></s:text></a>
		<ul>
			<li><a href="../galleries/Galleries.action?mode=AP"><s:text name="menu.gallery.add"></s:text></a></li>
			<li><a href="../galleries/Galleries.action?mode=L"><s:text name="menu.gallery.list"></s:text></a></li>
		</ul>
	</li>
	<s:if test="<%=String.valueOf(((ro.dandanciu.webgallery.domainmodel.User) 
			session.getAttribute(\"session_user\")).isAdmin())%>">
		<li><a href="#"><s:text name="menu.users"></s:text></a>
			<ul>
				<li><a href="../users/User.action?mode=R"><s:text name="menu.users.add"></s:text></a></li>
				<li><a href="../users/User.action?mode=L"><s:text name="menu.users.list"></s:text></a></li>
			</ul>
		</li>
	</s:if>
	<li><a href="../general/LoginLogout.action?mode=O"><s:text name="menu.logout"></s:text></a></li>
</s:if>
<!-- Logged off menu -->
<s:else>
	<li><a href="../general/LoginLogout.action?mode=L"><s:text name="menu.login"></s:text></a></li>
</s:else>
</ul>